<?php
/**
 * 视图控制器
 */
namespace app\manage\controller\order;

use app\manage\controller\Base;

class Show extends Base
{

	public function index(){
        $params = $this->request->get();
        $whereFields = ['order_id','mid','status','start','end'];
        // 查询字符串
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;
		$pageData = [
			'title' => '订单列表'
		];
		$this->assign('pageData',$pageData);
        $this->assign('whereData',$whereData);
		return view();
	}


    public function details(){
        $params = $this->request->param('id');
        $pageData = [
            'title' => '订单详情'
        ];
        $this->assign('pageData',$pageData);
        $this->assign('orderId',$params);
        return view();
    }

}